<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>设置 UTC 日期和时间</title>
</head>
<body>
<script>
    var myDate = new Date();
    myDate.setUTCHours(12);
    myDate.setUTCMinutes(0);
    myDate.setUTCSeconds(0);
    var html = '<p>' + myDate.toUTCString() + '</p>';
    html += '<p>' + myDate.toLocaleString() + '</p>';
    document.write(html);
</script>
</body>
</html>